#ifndef PICLOADER_H
#define PICLOADER_H

#include <QThread>
#include <qmutex.h>
class QPixmap;
class PicLoader : public QThread
{
    Q_OBJECT
public:
    explicit PicLoader(QObject *parent = 0);
	~PicLoader();
	void run();
	void setUp(QStringList *l,QString *s,int *n);
	void reSet();
	void clear();
	bool runing;
	QPixmap **pics;
	QMutex mutex;
	QMutex *mutexs;
	void stop();
	void change();
signals:

public slots:
private:
	QStringList *files;
	QString *folder;
	int *nowReading;
	bool quit,changed;
	int len;
};

#endif // PICLOADER_H
